package com.ruicar.afs.cloud.afscase.channel.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.ruicar.afs.cloud.afscase.channel.entity.ChannelAffiliatedUnits;
import com.ruicar.afs.cloud.afscase.channel.mapper.ChannelAffiliatedUnitsMapper;
import com.ruicar.afs.cloud.afscase.channel.service.ChannelAffiliatedUnitsService;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>Description: </p>
 *
 * @author ZC.GUO
 * @version 1.0
 * @date create on 2020-05-26 23:17
 */
@Service
@AllArgsConstructor
@Data
@Slf4j
public class ChannelAffiliatedUnitsServiceImpl extends ServiceImpl<ChannelAffiliatedUnitsMapper, ChannelAffiliatedUnits> implements ChannelAffiliatedUnitsService {

    @Override
    public List<ChannelAffiliatedUnits> getAffiliationInfo(Long channelId, String affiliatedType, String affUnitsName) {
        return this.baseMapper.getAffiliationInfo(channelId, affiliatedType, affUnitsName);
    }

    @Override
    public List<ChannelAffiliatedUnits> getCooperPlatList(String socUniCrtCode) {
        return this.baseMapper.getCooperPlatList(socUniCrtCode);
    }
}
